package com.qcby.byc.demo0422.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qcby.byc.demo0422.entity.Person;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: PersonMapper
 * @description:
 * @author: lxt
 * @create: 2021-04-22 17:15
 **/
public interface PersonMapper extends BaseMapper<Person> {

    List<Person> listAll();
    List<Person> listAll1();

    /**
     * @Param
     * @param person
     */
    void save(@Param("person") Person person);


    void saveNew(@Param("personNew") Person person);


    void insertBatch(@Param("personList") List<Person> personList);

    void deleteByIds(@Param("idList") List<Long> idList);


    List<Person> listPersonNew(@Param("name")String name);
    List<Person> listPersonNewM();
}
